package com.jake.spring.metadata.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author wengzhengkai
 */
@Configuration
@ConfigurationProperties(prefix = "database")
@Data
public class DatabaseProperties {

    @Data
    public static class Server {

        private String ip;

        private int port;

    }

    private Server server;

    private String username;

    private String password;

}
